<?php if($_GET['cid'] == '2'){?>

<?php if($dRow['type'] == 'mmgallery'){?>
<div id="multimedia_root">
    <div id="multimedia_titlu_corp">multimedia</div>
    <div class="mmt_corp"><img alt="" src="../../../templates/default/images/corner-red-stanga-sus.png" width="16" height="16"></div>
    <div id="multimedia_subtitlu_corp">
            <?php
            $query = mysql_query("select * from dt_modules where `type`='mmgallery' and `m_visible`='1' and m_id = '".$dRow['m_id']."'");
            while ($qRow = mysql_fetch_array($query)){ echo $qRow['m_title']; }?>
    </div>
    <div class="mmb_corp"><img alt="" src="../../../templates/default/images/corner-red-stanga-jos.png" width="16" height="16"></div>
    <div id="multimedia_holder">
            <div id="multimedia_overlay_corp">&nbsp;</div>
            <div id="multimedia_file">
                <style type="text/css" media="screen">
                #wrapperMM<?php echo $dRow['m_id']?>{
                        width:280px;
                        height:200px;
                        margin:0px;
                }
                #containerMM<?php echo $dRow['m_id']?>{
                        position:relative;
                        height:200px;
                }
                .sliderbutton{
                        position:absolute;
                        width:20px;
                        height:20px;
                        cursor:pointer
                }
                #slideleft{
                        background:url(../../../templates/default/images/buttons-multimedia-corp.png) 0px -20px  no-repeat;
                        margin-top:170px;
                        margin-left:10px;
                        z-index:3;
                }
                #slideleft:hover{
                        background-position:0px 0px
                }
                #slideright{
                        background:url(../../../templates/default/images/buttons-multimedia-corp.png) -20px -20px no-repeat;
                        margin-top:170px;
                        margin-left:250px;
                        z-index:2;
                }
                #slideright:hover{
                        background-position:-20px 0px
                }
                #sliderMM<?php echo $dRow['m_id']?>{
                        float:left;
                        position:relative;
                        overflow:auto;
                        width:280px;
                        height:200px
                }
                #sliderMM<?php echo $dRow['m_id']?> ul{
                        position:absolute;
                        padding-left:0px;
                        margin-top:0px;
                        list-style:none;
                        top:0;
                        left:0
                }
                #sliderMM<?php echo $dRow['m_id']?> li{
                        float:left;
                        width:280px;
                        height:200px
                }
                .pagination<?php echo $dRow['m_id']?>{
                        position:absolute;
                        top:159px;
                        right:30px;
                        list-style:none;
                        height:10px
                }
                .pagination<?php echo $dRow['m_id']?> li{
                        float:left;
                        cursor:pointer;
                        height:8px;
                        width:8px;
                        background:#FFFFFF;
                        margin:0 4px 0 0;
                        border:1px solid #a9002b;
                }
                .pagination<?php echo $dRow['m_id']?> li:hover, li.current{
                        background:#a9002b;
                        border:1px solid #FFFFFF;
                }
                </style>

            <div id="wrapperMM<?php echo $dRow['m_id']?>">
                <div id="containerMM<?php echo $dRow['m_id']?>">
                    <div class="sliderbutton" id="slideleft" onclick="slideshow<?php echo $dRow['m_id']?>.move(-1)"></div>
                    <div id="sliderMM<?php echo $dRow['m_id']?>">
                        <ul>
                        <?php
                        $q3 = mysql_query("select * from dt_multimedia_content where m_id = '".$dRow['m_id']."'");
                        $row_count = mysql_num_rows($q3);
                        while ($q3Row = mysql_fetch_array($q3)){
                            echo '<li><a class="lightbox" href="../../../uploads/multimedia/'.$q3Row['path'].'"><img src="../../../uploads/multimedia/thumbs/thumb_620-'.$q3Row['path'].'" width="280" height="200" /></a></li>';
                        }
                        ?>
                        </ul>
                    </div>
                    <div class="sliderbutton" id="slideright" onclick="slideshow<?php echo $dRow['m_id']?>.move(1)"></div>
                    <ul id="pagination<?php echo $dRow['m_id']?>" class="pagination<?php echo $dRow['m_id']?>">
                    <?php
                        for ($i=0;$i<$row_count;$i++){
                                echo '<li onclick="slideshow'.$dRow['m_id'].'.pos('.$i.')"></li>';
                        }
                    ?>
                    </ul>
                </div>
            </div>

            <script type="text/javascript">
            var slideshow<?php echo $dRow['m_id']?>=new TINY.slider.slide('slideshow<?php echo $dRow['m_id']?>',{
                    id:'sliderMM<?php echo $dRow['m_id']?>',
                    auto:0,
                    resume:false,
                    vertical:false,
                    navid:'pagination<?php echo $dRow['m_id']?>',
                    activeclass:'current',
                    position:0,
                    rewind:false,
                    elastic:false,
                    left:'slideleft',
                    right:'slideright'
            });
            </script>
            </div>
    </div>
</div>
<?php } if($dRow['type'] == 'mmvideo'){?>

<div id="multimedia_root">
    <div id="multimedia_titlu_corp">multimedia</div>
    <div class="mmt_corp"><img alt="" src="../../../templates/default/images/corner-red-stanga-sus.png" width="16" height="16"></div>
    <div id="multimedia_subtitlu_corp">
            <?php
            $query = mysql_query("select * from dt_modules where `type`='mmvideo' and `m_visible`='1'");
            while ($qRow = mysql_fetch_array($query)){ echo $qRow['m_title'];} ?>
    </div>
    <div class="mmb_corp"><img alt="" src="../../../templates/default/images/corner-red-stanga-jos.png" width="16" height="16"></div>
    <div id="multimedia_holder">
        <div id="multimedia_overlay_corp">&nbsp;</div>
        <div id="multimedia_file">
            <script language="javascript">
                if (AC_FL_RunContent == 0) {
                        alert("This page requires AC_RunActiveContent.js.");
                } else {
                    AC_FL_RunContent(
                        'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
                        'width', '280',
                        'height', '200',
                        'src', 'jcplayer',
                        'quality', 'high',
                        'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                        'align', 'middle',
                        'play', 'true',
                        'loop', 'true',
                        'scale', 'noScale',
                        'wmode', 'window',
                        'devicefont', 'false',
                        'id', 'jcplayer',
                        'bgcolor', '#ffffff',
                        'wmode', 'transparent',
                        'name', 'jcplayer',
                        'menu', 'true',
                        'allowFullScreen', 'true',
                        'allowScriptAccess','sameDomain',
                        <?php
                        $q3 = mysql_query("select * from dt_multimedia_content where m_id = '".$dRow['m_id']."'");

                        while ($q3Row = mysql_fetch_array($q3)){
                            $string = 'uploads/multimedia/'.$q3Row['path'];
                            $photo = '../../../uploads/multimedia/thumbs/'.$q3Row['thumb_path'];
                        }
                        ?>
                        'FlashVars','videoURL=<?php echo $string;?>&autoPlay=false&startPhotoSource=<?php echo $photo;?>&backgroundColor1=0x333333&backgroundColor2=0x222222',
                        'movie', '../../../jcplayer',
                        'salign','TL'
                        ); //end AC code
                }
            </script>
            <noscript>
                <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="320" height="265" id="jcplayer" align="TL">
                <param name="allowScriptAccess" value="sameDomain" />
                <param name="FlashVars" value="videoURL=uploads/offers/video/oferta_1/video.flv&autoPlay=false&startPhotoSource=uploads/offers/video/oferta_1/thumbs/photo.jpg&backgroundColor1=0x333333&backgroundColor2=0x222222">
                <param name="allowFullScreen" value="true" />
                <param name="salign" value="TL" />
                <param name="scale" value="noScale" />
                <param name="movie" value="../../jcplayer.swf" />
                <param name="quality" value="high" />
                <param name="bgcolor" value="#ffffff" />
                <embed src="jcplayer.swf" FlashVars="videoURL=uploads/offers/video/oferta_1/video.flv&autoPlay=false&startPhotoSource=uploads/offers/video/oferta_1/thumbs/photo.jpg&backgroundColor1=0x333333&backgroundColor2=0x222222" quality="high" bgcolor="#ffffff" width="320" height="265" name="jcplayer" align="middle" salign="TL" scale="noScale" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
                </object>
            </noscript>
        </div>
    </div>
</div>
<?php }?>

<?php } else {?>

<?php if($dRow['type'] == 'mmgallery'){?>
<div id="multimedia_root">
    <div id="multimedia_titlu">multimedia</div>
    <div class="mmt"><img alt="" src="../../../templates/default/images/corner-blue-stanga-sus.png" width="16" height="16"></div>
    <div id="multimedia_subtitlu">
            <?php
            $query = mysql_query("select * from dt_modules where `type`='mmgallery' and `m_visible`='1' and m_id = '".$dRow['m_id']."'");
            while ($qRow = mysql_fetch_array($query)){ echo $qRow['m_title']; }?>
    </div>
    <div class="mmb"><img alt="" src="../../../templates/default/images/corner-blue-stanga-jos.png" width="16" height="16"></div>
    <div id="multimedia_holder">
            <div id="multimedia_overlay">&nbsp;</div>
            <div id="multimedia_file">
                <style type="text/css" media="screen">
                #wrapperMM<?php echo $dRow['m_id']?>{
                        width:280px;
                        height:200px;
                        margin:0px;
                }
                #containerMM<?php echo $dRow['m_id']?>{
                        position:relative;
                        height:200px;
                }
                .sliderbutton{
                        position:absolute;
                        width:20px;
                        height:20px;
                        cursor:pointer
                }
                #slideleft{
                        background:url(../../../templates/default/images/buttons-multimedia.png) 0px -20px  no-repeat;
                        margin-top:170px;
                        margin-left:10px;
                        z-index:3;
                }
                #slideleft:hover{
                        background-position:0px 0px
                }
                #slideright{
                        background:url(../../../templates/default/images/buttons-multimedia.png) -20px -20px no-repeat;
                        margin-top:170px;
                        margin-left:250px;
                        z-index:2;
                }
                #slideright:hover{
                        background-position:-20px 0px
                }
                #sliderMM<?php echo $dRow['m_id']?>{
                        float:left;
                        position:relative;
                        overflow:auto;
                        width:280px;
                        height:200px
                }
                #sliderMM<?php echo $dRow['m_id']?> ul{
                        position:absolute;
                        padding-left:0px;
                        margin-top:0px;
                        list-style:none;
                        top:0;
                        left:0
                }
                #sliderMM<?php echo $dRow['m_id']?> li{
                        float:left;
                        width:280px;
                        height:200px
                }
                .pagination<?php echo $dRow['m_id']?>{
                        position:absolute;
                        top:159px;
                        right:30px;
                        list-style:none;
                        height:10px
                }
                .pagination<?php echo $dRow['m_id']?> li{
                        float:left;
                        cursor:pointer;
                        height:8px;
                        width:8px;
                        background:#FFFFFF;
                        margin:0 4px 0 0;
                        border:1px solid #000000
                }
                .pagination<?php echo $dRow['m_id']?> li:hover, li.current{
                        background:#000000;
                        border:1px solid #FFFFFF;
                }
                </style>

            <div id="wrapperMM<?php echo $dRow['m_id']?>">
                <div id="containerMM<?php echo $dRow['m_id']?>">
                    <div class="sliderbutton" id="slideleft" onclick="slideshow<?php echo $dRow['m_id']?>.move(-1)"></div>
                    <div id="sliderMM<?php echo $dRow['m_id']?>">
                        <ul>
                        <?php
                        $q3 = mysql_query("select * from dt_multimedia_content where m_id = '".$dRow['m_id']."'");
                        $row_count = mysql_num_rows($q3);
                        while ($q3Row = mysql_fetch_array($q3)){
                            $array = explode("_", $q3Row['path']);
                            echo '<li><a class="lightbox" href="../../../uploads/multimedia/'.$q3Row['path'].'"><img src="../../../uploads/multimedia/thumbs/thumb_'.$q3Row['m_id'].'-'.$q3Row['path'].'" width="280" height="200" /></a></li>';
                            }
                        ?>
                        </ul>
                    </div>
                    <div class="sliderbutton" id="slideright" onclick="slideshow<?php echo $dRow['m_id']?>.move(1)"></div>
                    <ul id="pagination<?php echo $dRow['m_id']?>" class="pagination<?php echo $dRow['m_id']?>">
                    <?php
                        for ($i=0;$i<$row_count;$i++){
                                echo '<li onclick="slideshow'.$dRow['m_id'].'.pos('.$i.')"></li>';
                        }
                    ?>
                    </ul>
                </div>
            </div>

            <script type="text/javascript">
            var slideshow<?php echo $dRow['m_id']?>=new TINY.slider.slide('slideshow<?php echo $dRow['m_id']?>',{
                    id:'sliderMM<?php echo $dRow['m_id']?>',
                    auto:0,
                    resume:false,
                    vertical:false,
                    navid:'pagination<?php echo $dRow['m_id']?>',
                    activeclass:'current',
                    position:0,
                    rewind:false,
                    elastic:false,
                    left:'slideleft',
                    right:'slideright'
            });
            </script>
            </div>
    </div>
</div>
<?php } if($dRow['type'] == 'mmvideo'){?>

<div id="multimedia_root">
    <div id="multimedia_titlu">multimedia</div>
    <div class="mmt"><img alt="" src="../../../templates/default/images/corner-blue-stanga-sus.png" width="16" height="16"></div>
    <div id="multimedia_subtitlu">
            <?php
            $query = mysql_query("select * from dt_modules where `type`='mmvideo' and `m_visible`='1'");
            while ($qRow = mysql_fetch_array($query)){ echo $qRow['m_title'];} ?>
    </div>
    <div class="mmb"><img alt="" src="../../../templates/default/images/corner-blue-stanga-jos.png" width="16" height="16"></div>
    <div id="multimedia_holder">
        <div id="multimedia_overlay">&nbsp;</div>
        <div id="multimedia_file">
            <script language="javascript">
                if (AC_FL_RunContent == 0) {
                        alert("This page requires AC_RunActiveContent.js.");
                } else {
                    AC_FL_RunContent(
                        'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
                        'width', '280',
                        'height', '200',
                        'src', 'jcplayer',
                        'quality', 'high',
                        'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                        'align', 'middle',
                        'play', 'true',
                        'loop', 'true',
                        'scale', 'noScale',
                        'wmode', 'window',
                        'devicefont', 'false',
                        'id', 'jcplayer',
                        'bgcolor', '#ffffff',
                        'wmode', 'transparent',
                        'name', 'jcplayer',
                        'menu', 'true',
                        'allowFullScreen', 'true',
                        'allowScriptAccess','sameDomain',
                        <?php
                        $q3 = mysql_query("select * from dt_multimedia_content where m_id = '".$dRow['m_id']."'");

                        while ($q3Row = mysql_fetch_array($q3)){
                            $string = 'uploads/multimedia/'.$q3Row['path'];
                            $photo = '../../../uploads/multimedia/thumbs/'.$q3Row['thumb_path'];
                        }
                        ?>
                        'FlashVars','videoURL=<?php echo $string;?>&autoPlay=false&startPhotoSource=<?php echo $photo;?>&backgroundColor1=0x333333&backgroundColor2=0x222222',
                        'movie', '../../../jcplayer',
                        'salign','TL'
                        ); //end AC code
                }
            </script>
            <noscript>
                <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="320" height="265" id="jcplayer" align="TL">
                <param name="allowScriptAccess" value="sameDomain" />
                <param name="FlashVars" value="videoURL=uploads/offers/video/oferta_1/video.flv&autoPlay=false&startPhotoSource=uploads/offers/video/oferta_1/thumbs/photo.jpg&backgroundColor1=0x333333&backgroundColor2=0x222222">
                <param name="allowFullScreen" value="true" />
                <param name="salign" value="TL" />
                <param name="scale" value="noScale" />
                <param name="movie" value="../../jcplayer.swf" />
                <param name="quality" value="high" />
                <param name="bgcolor" value="#ffffff" />
                <embed src="jcplayer.swf" FlashVars="videoURL=uploads/offers/video/oferta_1/video.flv&autoPlay=false&startPhotoSource=uploads/offers/video/oferta_1/thumbs/photo.jpg&backgroundColor1=0x333333&backgroundColor2=0x222222" quality="high" bgcolor="#ffffff" width="320" height="265" name="jcplayer" align="middle" salign="TL" scale="noScale" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
                </object>
            </noscript>
        </div>
    </div>
</div>
<?php }?>

<?php }?>